
<script type="text/javascript">

   var timestamp=new Date();
   var year = timestamp.getYear();       //年
   var month = timestamp.getMonth() + 1;     //月
   var day = timestamp.getDate();            //日
   console.log(timestamp);
   console.log(year+"=="+month+"==="+day);
</script>